package com.jiang.lianxi;

import java.util.Scanner;

public class LaoHu {
    public static void main(String[] args) {
        //利用三元运算符判断老虎的体重是否相等
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一只老虎的体重");
        int i = sc.nextInt();
        System.out.println("请输入第二只老虎的体重");
        int j = sc.nextInt();
        String result = i == j ? "相同" : "不相同";
        System.out.println("他们的体重" + result);
    }
}
